package cn.edu.lingnan.service;

import cn.edu.lingnan.common.JsonResult;
import cn.edu.lingnan.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.ui.Model;

import javax.servlet.http.HttpSession;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 文韬
 * @since 2022-06-24
 */
public interface UserService extends IService<User> {

    //登录
    JsonResult<Void> dologin(String uAccount, String uPassWord, String uPower, HttpSession session);

    //检查手机号
    JsonResult<Void> checkLoginuAccount(String userPhone);

    //注册
    JsonResult<Void> doReg(String uName,String uAccount, String uPassWord,String confirmPwd, String uPower,String uEmail, HttpSession session);

    //判断注册的账号
    JsonResult<Void> checkReguAccount(String uAccount);

    //验证密码一致性
    JsonResult<Void> checkuPasswordAndConfirmPwd(String uPassword, String confirmPwd);

    //验证邮箱
    JsonResult<Void> checkEmail(String uEmail);

}
